package graphe;

import java.util.Vector;

public class Point {
	
	
	private Vector<Point> Voisins=new Vector<Point>();
	private double lat;
	private double lon;
	private boolean intersection;
	
	public Point(double lat, double lon,boolean b) {
		super();
		this.setLat(lat);
		this.setLon(lon);
		this.setIntersection(b);
	}
	public double getLon() {
		return lon;
	}
	public void setLon(double lon) {
		this.lon = lon;
	}
	public double getLat() {
		return lat;
	}
	public void setLat(double lat) {
		this.lat = lat;
	}
	public Vector<Point> getVoisins() {
		return Voisins;
	}
	public void setVoisins(Vector<Point> voisins) {
		Voisins = voisins;
	}
	public boolean isIntersection() {
		return intersection;
	}
	public void setIntersection(boolean intersection) {
		this.intersection = intersection;
	}
	@Override
	public String toString() {
		return "Point [lat=" + lat + ", lon=" + lon + "]";
	}
	public void Point_afficheListeVoisins()
	{
		System.out.println(this.Voisins.size());
		for(Point p : Voisins)
		{
			System.out.println(p+"-");
		}
		
	}
	
}
